package com.shijun.tankwar;

import android.graphics.Bitmap;

/**
 * Created by zhushijun on 2018/1/12 0012.
 */

public class TankEntity extends FreedomMoveEntity {

    private String name;//名称
    private String avatar;//头像

    private double tankShootOrientation;//射击方向
    private double tankShootAngle;//射击角度

    private int blood;
    private int kill;
    private int die;

    private Bitmap boreBitmap;


    public TankEntity(int _id, int speed, int tankX, int tankY, int width, int height, Bitmap img,Bitmap boreBitmap, int tankMoveOrientation, int tankShootOrientation, int tankShootAngle) {
        super(_id, FreedomMoveEntity.TYPE_TANK, tankX, tankY, width, height, img, tankMoveOrientation, speed);
        this.tankShootOrientation = tankShootOrientation;
        this.tankShootAngle = tankShootAngle;
        this.boreBitmap = boreBitmap;
    }

    public void setUserInfo(String name, String avatar) {
        this.name = name;
        this.avatar = avatar;
    }

    public void setLive(int blood, int kill, int die) {
        this.blood = blood;
        this.kill = kill;
        this.die = die;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public double getTankShootOrientation() {
        return tankShootOrientation;
    }

    public void setTankShootOrientation(double tankShootOrientation) {
        this.tankShootOrientation = tankShootOrientation;
    }

    public double getTankShootAngle() {
        return tankShootAngle;
    }

    public void setTankShootAngle(double tankShootAngle) {
        this.tankShootAngle = tankShootAngle;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getKill() {
        return kill;
    }

    public void setKill(int kill) {
        this.kill = kill;
    }

    public int getDie() {
        return die;
    }

    public void setDie(int die) {
        this.die = die;
    }

    public Bitmap getBoreBitmap() {
        return boreBitmap;
    }

    public void setBoreBitmap(Bitmap boreBitmap) {
        this.boreBitmap = boreBitmap;
    }

    @Override
    public String toString() {
        return "TankEntity{" +
                "name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", tankShootOrientation=" + tankShootOrientation +
                ", _id=" + _id +
                ", tankShootAngle=" + tankShootAngle +
                ", startX=" + startX +
                ", blood=" + blood +
                ", startY=" + startY +
                ", kill=" + kill +
                ", width=" + width +
                ", die=" + die +
                ", height=" + height +
                ", img=" + img +
                ", orientation=" + orientation +
                ", speed=" + speed +
                ", confine=" + confine +
                ", type=" + type +
                '}';
    }
}
